package com.codi.bus.core.dao.impl;

import com.codi.base.dao.v2.GeneratedBaseDaoImpl;
import com.codi.bus.core.dao.OneFundDao;
import com.codi.bus.core.dao.OneWalletDao;
import com.codi.bus.core.domain.OneFund;
import com.codi.bus.core.domain.OnePortfolio;
import com.codi.bus.core.domain.OneWallet;
import org.springframework.stereotype.Repository;

/**
 * Created by asus on 2017/12/6.
 */
@Repository("oneWalletDao")
public class OneWalletDaoImpl extends GeneratedBaseDaoImpl<OneWallet> implements OneWalletDao {
    @Override
    public Long insertByCode( OneWallet oneWallet) {
        super.insert(this.generateStatement("insert"), oneWallet);
        return oneWallet.getOwOneWalletId();
    }
}
